package com.medical.service.impl;

import com.medical.entity.FeedbackEntity;
import com.medical.entity.dto.FeedbackDto;
import com.medical.entity.vo.FeedbackVo;
import com.medical.entity.vo.PrescriptionVo;
import com.medical.mapper.FeedbackMapper;
import com.medical.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Component
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    FeedbackMapper feedbackMapper;
    @Override
    public void add(FeedbackEntity feedbackEntity) {
        feedbackMapper.add(feedbackEntity);
    }

    @Override
    public List<FeedbackEntity> selectByIdlist(Integer userId) {
        return feedbackMapper.selectByIdlist(userId);
    }

    @Override
    public List<FeedbackVo> selectlist() {
        return feedbackMapper.selectlist();
    }

    @Override
    public int update(FeedbackDto feedbackDto) {
        return feedbackMapper.update(feedbackDto);
    }
}
